import { createSSRApp } from "vue";
import App from "./App.vue";
import * as Pinia from "pinia";
import uviewPlus from "@/uni_modules/uview-plus";
import PublicPage from '@/components/publicPage.vue';

export function createApp() {
  const app = createSSRApp(App);
  app.use(Pinia.createPinia());
  app.use(uviewPlus);

  app.component('PublicPage',PublicPage);
  return {
    app,
    Pinia,
  };
}
